package epoverty;

/**
 *
 * @author bnielson
 */
public class CsvImport
{
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args)
    {
        //SAMPLE USAGE
        //Create an importer object
        ImportProcessorData importer = new ImportProcessorData();

        //Pass it a file path
        importer.parseFile("C:\\Users\\bnielson\\Desktop\\Book1.csv");

        //Display the results from reading the file
        for (int i = 0; i < importer.dataArray.length; i++)
        {
            System.out.println("DonationId: " + importer.dataArray[i].donationId);
            System.out.println("Amount: " + importer.dataArray[i].donationAmount);
            System.out.println("StatusId: " + importer.dataArray[i].statusID);
            System.out.println("-----------------------------");
        }
    }
}
